<!DOCTYPE html>
<html>

<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>H+ 后台主题UI框架 - 空白页</title>
    <meta name="keywords" content="">
    <meta name="description" content="">
    <link rel="shortcut icon" href="favicon.ico">
    <link href="__STATIC__/layout/css/bootstrap.min.css?v=3.3.6" rel="stylesheet">
    <link href="__STATIC__/layout/css/font-awesome.css?v=4.4.0" rel="stylesheet">
    <!-- jqgrid-->
    <link href="__STATIC__/layout/css/plugins/jqgrid/ui.jqgrid.css?0820" rel="stylesheet">
    <link href="__STATIC__/layout/css/animate.css" rel="stylesheet">
    <link href="__STATIC__/layout/css/style.css?v=4.1.0" rel="stylesheet">
    <link href="__STATIC__/layout/css/plugins/sweetalert/sweetalert.css" rel="stylesheet">
    <link href="__STATIC__/layout/css/gyq.css" rel="stylesheet">
    <link rel="stylesheet" href="__STATIC__/layout/css/demo.css" type="text/css">
    <link rel="stylesheet" href="__STATIC__/layout/css/zTreeStyle.css" type="text/css">
     <script src="__STATIC__/layout/js/jquery.min.js?v=2.1.4"></script>
    <script src="__STATIC__/sc/js/page.js"></script>
</head>

<body style="color:#333;padding:3px;">
    <!-- 标题 -->
    <div class="page-heade clearfix">
          <h2 class="clearfix text-center">
        <a class="col-md-4 title_color H_right H_active" id="Ap1" style="font-size: 16px" href="{:url('Wangdian/allapcha')}">所属网点销售目标查询</a>
        <a class="col-md-4 title_color H_right" id="Ap2" style="font-size: 16px;color:#333;" href="{:url('Wangdian/allapmanage')}">所属网点销售目标管理</a>
        <a
            class="col-md-4 title_color" id="Ap3" style="color:#333;font-size: 16px"  href="{:url('Wangdian/allaptongji')}">所属网点销售目标统计</a>
         </h2>
    </div>
    <!-- 标题 -->
    
    <!-- 筛选 -->
    <form action="#" method="post" id="form_check" accept-charset="utf-8" class="container-fluid bud_dl formpage">
                      <input type="hidden" value='{$page}' name="page" id="page-go"/>
                      <input type="hidden" value='{$list}' name="list" id="list-go"/>
        <div class="form-inline padd">
            <div class="form-group margin-10 col-sm-4">
                <label for="exampleInputEmail2">编号：</label>
                <input type="text" name="no" value="{$data.no}" placeholder="" class="form-control">
            </div>
            <div class="form-group margin-10 col-sm-4">
                <label for="exampleInputEmail2">状态：</label>
               <select class="form-control" name="state">
                   <option value="0">请选择</option>
                   <option value="1">草稿</option>
                   <option value="2">已打回</option>
                   <option value="3">区域领导审批</option>
                   <option value="4">拆分人审批</option>
                   <option value="5">集团领导审批</option>
                   <option value="6">抄送</option>
                   <option value="7">归档</option>
                   <option value="8">已作废</option>
                   <option value="9">已否决</option>
               </select>
               <script>$("[name='state']").val({$data.state})</script>
            </div>
            <div class="form-group margin-10 col-sm-4">
                <label for="exampleInputEmail2">财年：</label>
                <input type="text" name="cainian" value="{$data.cainian}" placeholder="" class="form-control">
            </div>
            <div class="form-group margin-10 col-sm-4">
                <label for="exampleInputEmail2">主题：</label>
                <input type="text" name="title" value="{$data.title}" placeholder="" class="form-control">
            </div>
            <div class="margin-10 text-center col-sm-12">
               <input type="button" value="查询" class='btn btn-outline btn-primary' id="check"/>
             <input type="button" value="清空查询条件" class='btn btn-outline btn-warning' id="clear_check"/>
            </div>
        </div>
    </form>
    <!-- 筛选 -->
    <!-- 表格 -->
    <div class="col-md-12 no-padding" style="padding: 0 12px;">
     {if condition="$sum neq 0"}
        <table class="table table-striped table-bordered table-hover bud_hei text-center">
            <tr class="info">
                <th class="text-center">No.</th>
                <th class="text-center">编号</th>
                <th class="text-center">主题</th>
                <th class="text-center">财年</th>
                <th class="text-center">状态</th>
                <th class="text-center">申请人</th>
                <th class="text-center">申请时间</th>
                <th class="text-center">流程图</th>
            </tr>
              {volist name="apply" id="vo"}
            <tr>
              <td>{$i}</td>
              <td><a href="javascript:;" onclick="newlayon({$vo.id})">{$vo.no}</a></td>
              <td>
                                    {if $vo.tag==1}
                                    <span class="is_yd">
                                    {elseif $vo.state==7/}
                                     <span style="font-weight: bold;">
                                     {else/}
                                     <span>
                                     {/if}
                                    {$vo.title}
                                       {if $vo.tag==1}
                                      <span class="glyphicon glyphicon-remove delCssY" style="color:blue;" title="已异动" aria-hidden="true"></span>
                                    {elseif $vo.state==7/}
                                     <span class="glyphicon glyphicon-ok duigou" title="已生效" aria-hidden="true"></span>
                                     {else/}
                                     
                                     {/if}
                                    </span>
            </td>
              <td>{$vo.cainian}</td>
              <td>{$vo.statetitle}</td>
              <td>{$vo.cname}</td>
              <td>{$vo.created_on}</td>
              <td>
                                      {if $vo.state==1}
                                       
                                      {else/}
                                        
                                           <a href="{:url('Workflowdb/workflowchart',['id'=>$vo.myId])}" class="J_menuItem" title="查看流程图">查看流程图</a>
                                      {/if}
                                        
                                      
                                      
                                    </td>
            </tr>
            {/volist}
        </table>
        <h5 class="text-center" id="pagesc" style="font-size: 16px;font-weight: 500">
            <script>
                            $(function(){
                                pageSC("pagesc",{$sum},{$page},{$maxpage})
                            })
                        </script>
          每页显示
          <select id="pagesize">
            <option value='10' {if condition="$list eq 10"}selected{/if}>10条</option>
            <option value='15'{if condition="$list eq 15"}selected{/if}>15条</option>
            <option value='20'{if condition="$list eq 20"}selected{/if}>20条</option>

          </select>
        </h5>
        {else/}
        <h3>对不起没有查询到符合条件的信息</h3>
    {/if}
    </div>
    <!-- 表格 -->
    <div>
    </div>
    </div>
    <!-- 全局js -->
    <script src="__STATIC__/layout/js/bootstrap.min.js?v=3.3.6"></script>
    <!-- <script src="js/plugins/metisMenu/jquery.metisMenu.js"></script> -->
    <script src="__STATIC__/layout/js/plugins/slimscroll/jquery.slimscroll.min.js"></script>
    <!-- <script src="js/plugins/layer/layer.min.js"></script> -->
   
    <script src="__STATIC__/layout/js/content.js?v=1.0.0"></script>
    <script src="__STATIC__/layout/js/plugins/sweetalert/sweetalert.min.js"></script>
    <!-- ztree -->
    <script type="__STATIC__/layout/text/javascript" src="js/jquery.ztree.core.js"></script>
    <script type="__STATIC__/layout/text/javascript" src="js/jquery.ztree.excheck.js"></script>
    <!-- <script type="text/javascript" src="http://tajs.qq.com/stats?sId=9051096" charset="UTF-8"></script> -->
    <!--统计代码，可删除-->
    <script src="__STATIC__/layout/js/plugins/layer/laydate/laydate.js"></script><script src="__STATIC__/layout/js/contabs_sub.js"></script>
    <script>
    //翻页
     
        $("#check").click(function(){
              $("#page-go").val(1);
              $(".formpage").submit();
        })
        $("#clear_check").click(function(){
          	$("select").val(0);
          	$("input[type='text']").val('');
            $(".formpage").submit();
        })
    function newlay(){
        	 parent.layer.open({
	            type: 2,
	            title: '导入网点销售目标',
	            shadeClose: true,
	            shade: false,
	            maxmin: true, //开启最大化最小化按钮
	            area: ['1280px', '650px'],
	            content: '{:url("Wangdian/addfor")}'
        	});
        }
        function newlayon(tid){
        	 parent.layer.open({
	            type: 2,
	            title: '日常费用预算申请详细',
	            shadeClose: true,
	            shade: false,
	            maxmin: true, //开启最大化最小化按钮
	            area: ['1280px', '650px'],
	            content: '{:url("Wangdian/detail")}?tid='+tid
        	});
        }
    </script>
</body>

</html>